package com.rental.model.entity.base;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
public class BaseEntity {
    @Schema(description = "主键")
    @TableId
    private Long id;

    @Schema(description = "创建时间")
    private Date createTime;
    @Schema(description = "更新时间")
    private Date updateTime;
    @TableLogic
    @Schema(description = "删除标志")
    private Integer isDeleted;
}
